import { createWebHistory, createRouter } from 'vue-router'

import one from '../vitws/home/one.vue'
import two from '../vitws/home/two.vue'
import yi from '../vitws/home/yi.vue'
import lu from '../vitws/home/lu.vue'
import chen from '../vitws/home/chen.vue'
import login from '../vitws/login.vue'
const routes = [
    { path: '/', redirect: '/one' },

  { path: '/login', component: login },
  { path: '/one', component: one,
    children:[
        { path: 'one', component: one },
        { path: 'two', component: two },
        { path: 'yi', component: yi },
        { path: 'chen', component: chen },
        { path: 'lu', component: lu },
    ]
   },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router